#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20220814.sql ./mysql/db
cp ../sql/ry_config_20220510.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../ybox-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy ybox-gateway "
cp ../ybox-gateway/target/ybox-gateway.jar ./ybox/gateway/jar

echo "begin copy ybox-auth "
cp ../ybox-auth/target/ybox-auth.jar ./ybox/auth/jar

echo "begin copy ybox-visual "
cp ../ybox-visual/ybox-monitor/target/ybox-visual-monitor.jar  ./ybox/visual/monitor/jar

echo "begin copy ybox-modules-system "
cp ../ybox-modules/ybox-modules-system/target/ybox-modules-system.jar ./ybox/modules/system/jar

echo "begin copy ybox-modules-file "
cp ../ybox-modules/ybox-modules--file/target/ybox-modules-file.jar ./ybox/modules/file/jar

echo "begin copy ybox-modules-job "
cp ../ybox-modules/ybox-modules-job/target/ybox-modules-job.jar ./ybox/modules/job/jar

echo "begin copy ybox-modules-gen "
cp ../ybox-modules/ybox-modules--gen/target/ybox-modules-gen.jar ./ybox/modules/gen/jar

